Calculate Pi
Benchmark Pi Calculation
Comparing the fastest interpreters: OE, Phix, and LuaJIT.
Testing on a 32bit atom netbook.
Language | Time in Seconds |
---|---|
OE Interpreter | 10 |
OE Compiled | 2.1 |
Phix Interpreter | 6 |
Phix Compiled | 4.7 |
LuaJIT Interpreter | 17 |
Testing on a 64bit i5 netbook:
Language | Time in Seconds |
---|---|
OE Interpreter | 3.1 |
OE Compiled | 0.25 |
Phix Interpreter | 1.4 |
Phix Compiled | 1.3 |
LuaJIT Interpreter | 2.5 |
Sources
The Lua algorithm found at Rosetta Code is used as a test case. P Lomax converted it to Phix, and I converted Pete's version to OE.
- OE pi algorithm OE pi benchmark
- Phix pi algorithm Phix pi benchmark
- Lua pi algorithm Lua pi benchmark
- Timer Program Nothing fancy. Only one run for each is timed. Benchmark timer